﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true" CodeBehind="EditSelectedLink.aspx.cs" Inherits="cnFederal.EditSelectedLink" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 99px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 

 <script language="javascript" type="text/javascript">
     function PrevImg(imgFile) {
         var Preview = document.getElementById('MainContent_imageSelected');
         Preview.src = imgFile.value;
         Preview.style.width = "100px";
         Preview.style.height = "100px";

     }
    </script>

    <script type="text/javascript">
        function setHeight(txtdesc) {
            txtdesc.style.height = txtdesc.scrollHeight + "px";
        }
</script>

      <table width="100%">
        <tr><td align ="center">
            <asp:Label ID="Label1" runat="server" Text="ایجاد و تغییر لینک" Font-Bold="True" Font-Size="12"></asp:Label>
    
            </td></tr>
        </table>

    <Table runat="server" id="MainTable">

    <tr><td>Date registreded</td><td>   <asp:TextBox ID="txtRegDate" width="170px" 
            runat="server" ToolTip="Kalendar" 
              AutoPostBack="false"  Text ='' TabIndex="21"></asp:TextBox>
             
        
         </td></tr>

           <tr><td>Title</td><td>   
               <asp:TextBox ID="txtTitle" width="500px" runat="server" ToolTip="Title" style="direction:rtl;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="58px" TextMode="MultiLine"></asp:TextBox>
            
        
         </td></tr>

         <tr><td>Description</td><td>   
               <asp:TextBox ID="txtDescription" width="500px" runat="server" ToolTip="Header" style="direction:rtl;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="52px" TextMode="MultiLine"></asp:TextBox>
         </td></tr>

          <tr><td>Link</td><td>   
               <asp:TextBox ID="TxtUrl" width="500px" runat="server" ToolTip="Header" style="direction:rtl;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="52px" TextMode="MultiLine"></asp:TextBox>
         </td></tr>

         <tr><td>Image</td>
         <td>
         
         <asp:FileUpload ID="fileupload1" runat="server" onchange="PrevImg(this)" />
         
             <asp:Button ID="btnBrows" runat="server" Text="Refresh img" 
                 onclick="btnBrows_Click" />
             <asp:Image ID="imageSelected" runat="server" ImageUrl = '<%# Eval("ImageUrl") %> ' Height="100px" Width="100px"  />
             
         </td></tr>

         <tr>
         <td class="style1">
             <asp:Button ID="btnSubmit" runat="server" Text="Save" 
                 onclick="btnSubmit_Click" /></td>
         <td class="style1"></td>
         </tr>


   
    </Table>








</asp:Content>
